﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dbPoll_Application.ViewModels.HelpViewModel>" %>
    
 <h2>Generating Reports</h2>
    <ol>
    <li><a href="#pollreports">Viewing Statistical Reports for a Poll</a></li>
    <ul>
        <li><a href="#generatereports">Generating Statistical Reports for a Poll</a></li>
        <li><a href="#display">Changing the Display of Graphical Reports for a Poll </a></li>
    </ul>
    <li><a href="#resultsfiltering">Filtering Results in Statistical Reports</a></li>
    <ul>
        <li><a href="#demographicfiltering">Filtering the Demographic Comparison Report by User Demographic Groups</a></li>
        <li><a href="#entityfiltering">Filtering the Results by Question or Demographic Comparison Reports by Entity Hierarchy</a></li>
    </ul>
    
    </ol>

    <p id="pollreports"><u>Viewing Statistical Reports for a Poll</u>

    <p id="generatereports">To generate statistical reports for a closed poll
        <ol>
        <li>Click on the <strong>Polls</strong> tab in the top right-hand corner of the screen</li>
        <li>Locate the poll in the generated table of polls and click on the poll name</li>
        <li>Select <strong>Reports</strong> from the horizontal poll menu</li>
        <ul>
            <li>To view a textual report, click the page icon</li>
            <li>To view a graphical report, click the pie-chart icon</li>
        </ul>
        <p align="center"><img src="../../Resources/Help/PollMaster-PollReports.png"/></p>
        <li>To filter the results in a report, select from the filtering options at the top of the report page and click <strong>Filter Results</strong></li>
        <li>To generate a PDF of a report, click <strong>Generate PDF</strong></li>
        </ol>
    </p>
    
    <p id="display">To change the display of the graphical reports for a closed poll 
    <ol>
        <li>Click on the <strong>Polls</strong> tab in the top right-hand corner of the screen</li>
        <li>Locate the poll in the generated table of polls and click on the poll name</li>
        <li>To change the default display of graphical reports for future poll questions, make the desired modifications to the poll's results chart's type, value, and colours under the relevant <em>Results Chart</em> heading</li>
        <li>To change the display of graphical reports for an individual question in the poll, locate and click on the question in the generated <em>Questions</em> table, before making the desired modifications to the question's results chart's type, value, and colours under the relevant <em>Results Chart</em> heading</li> 
        <li>Click <strong>Save Poll</strong> or <strong>Save</strong></li>
    </ol>    
    </p>
    </p>
    
    <p id="resultsfiltering"><u>Filtering Results in Statistical Reports</u>
    
    <p id="demographicfiltering">To filter the Demographic Comparison Report by user demographic groups
    <ol>
        <li>Click on the <strong>Polls</strong> tab in the top right-hand corner of the screen</li>
        <li>Locate the poll in the generated table of polls and click on the poll name</li>
        <li>Select <strong>Reports</strong> from the horizontal poll menu</li>
        <ul>
            <li>To view a textual Demographic Comparison report, click the page icon</li>
            <li>To view a graphical Demographic Comparison report, click the pie-chart icon</li>
        </ul>
        <li>To filter the results by demographic groups, select the desired category for filtering from the dropdown box at the top of the page, tick the checkbox next to each particular group within that category that you would like to filter by, and finally select whether to include or exclude results from these selected groups</li>
        <li>Once you are satisfied, click <strong>Filter Results</strong> to filter the results</li>       
    </ol>
    </p>
    
    <p id="entityfiltering">To filter the Results by Question or Demographic Comparison reports by entity hierarchy
    <ol>
        <li>Click on the <strong>Polls</strong> tab in the top right-hand corner of the screen</li>
        <li>Locate the poll in the generated table of polls and click on the poll name</li>
        <li>Select <strong>Reports</strong> from the horizontal poll menu</li>
        <ul>
            <li>To view a textual Results by Question or Demographic Comparison report, click the page icon</li>
            <li>To view a graphical Results by Question or Demographic Comparison report, click the pie-chart icon</li>
        </ul>
        <li>Locate the generated entity hierarchy chart at the top of the page and tick the checkbox next to each entity by which you would like to aggregate results</li>
        <li>Click <strong>Apply</strong></li>
    </ol>        
    </p>
    
</p>
